// 方法一     数据库
const mysql = require("mysql")

// 链接数据库
const conn =mysql.createConnection({
    host:'127.0.0.1',
    user:'root',
    password:'',
    database:'db1'
})
conn.connect()

module.exports = conn


